<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
    <h1>Login</h1>
    <p><a href="/login">立即登录</a></p>  
    <h1>Regist</h1>
    <p><a href="/regist">立即注册</a></p>   
    
  </body>
  <script>
    var ws = new WebSocket("ws://localhost:3000/users");
    ws.onopen = function(){
       ws.send("这是客户端发送的数据");
    };
    ws.onmessage = function (evt){ 
       alert("服务端数据："+evt.data);
    };
 </script>
 
</html>
